package com.service.impl;

import com.service.MyFunc;

/**
 * @description: 温度动态检测
 * @projectName:Lambda
 * @see:com.service.impl
 * @author:LXC
 * @createTime:2024/4/15 11:45
 * @version:1.0
 */
public class HightTempAysn {

    public static <T> int counter(T[] vals, MyFunc<T> func, T v) {
        int count = 0;
        for (int i = 0; i < vals.length; i++) {
            if (func.func(vals[i], v)) {
                count++;
            }
        }
        return count;
    }

    public static int add(){
        return 0;
    }
}
